package com.xiaomi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrdersEntity implements Serializable {
    private String ordersNumber;
    private int uid;
    private double sumPrice;
    private int goodsCount;
    private String ordersName;
    private Date createTime;
    private Integer state;

    public String getstringState(){
        switch (state){
            case 0:
                return "未支付";
            case 1:
                return "已支付,等待发货";
            case 2:
                return "已发货";
            case 3:
                return "已签收";
            case 4:
                return "退货中";
            case 5:
                return "已退货";
            default:
                return "订单状态异常！";
        }
    }



}
